/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jpi1208a;

/**
 *
 * @author VANDH
 */
public abstract class Animal {
    public class MauLong {
    }
    // instance variable
    protected int soChan;
    // static variable, hoặc class variable
    protected static int soLuong;

    public Animal() {
        soLuong++;
    }

    public Animal(int i) {
    }

    // phương thức static chỉ được phép truy xuất tới biến static
    public static int getSoLuong() {
        return soLuong;
    }

    public int getSoChan() {
        return this.soChan;
    }

    public void setSoChan(int i) {
        this.soChan = i;
    }

    public abstract boolean bietBay();

    public abstract boolean bietBoi();

    public abstract boolean bietKeu();
}
